package com.yike.user.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 销售报表数据信息
 *
 * @author Sakura
 * @since 2024-11-18
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "销售商品排行信息")
public class SalesGoodsRankDataDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @Excel(name = "商品名称", width = 15)
    private String goodsName;

    @Excel(name = "店铺名称", width = 15)
    private String shopName;

    @Excel(name = "店铺编号", width = 15)
    private String shopNo;

    @Excel(name = "分类名称", width = 15)
    private String categoryName;

    @Excel(name = "销售金额", width = 15)
    private BigDecimal totalAmount = BigDecimal.ZERO;

    @Excel(name = "销售金额占比（%）", width = 18)
    private BigDecimal salesProportion = BigDecimal.ZERO;

    @Excel(name = "销售数量", width = 15)
    private Integer buyNumber = 0;

    @Excel(name = "销售数量占比（%）", width = 18)
    private BigDecimal salesNumberProportion = BigDecimal.ZERO;

    @Excel(name = "地区", width = 15)
    private String region;

}
